class PagesController < WebappController
  
  def show
    @page = Page.find(params[:id])
  end
  def permalink
    @page = Page.find_by_permalink(params[:permalink])
    raise ActiveRecord::RecordNotFound unless @page
    render :action=>:show
  end
end
